import java.util.List;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) {

		List<String> list = new ArrayList<>();

		list.add("String");

		addAdditionalObject(list);

		for (Object object : list) {
			System.out.println(object);

		}

		for (Object object : list) {
			System.out.println(object.getClass());
		}

	}

	private static void addAdditionalObject(List list) {

		list.add(1);
		list.add('c');
		list.add(10l);
		list.add(10f);
		list.add(10d);
		list.add(10d);
		list.add(0x10);
		list.add(1e3);

	}

}
